﻿import request from '/@/utils/request';
enum Api {
  AddBusSubOrder = '/api/busSubOrder/add',
  DeleteBusSubOrder = '/api/busSubOrder/delete',
  UpdateBusSubOrder = '/api/busSubOrder/update',
  PageBusSubOrder = '/api/busSubOrder/page',
  GetBusStroeDropdown = '/api/busSubOrder/BusStroeDropdown',
  GetBusGoodsDropdown = '/api/busSubOrder/BusGoodsDropdown',
}

// 增加订单详细
export const addBusSubOrder = (params?: any) =>
	request({
		url: Api.AddBusSubOrder,
		method: 'post',
		data: params,
	});

// 删除订单详细
export const deleteBusSubOrder = (params?: any) => 
	request({
			url: Api.DeleteBusSubOrder,
			method: 'post',
			data: params,
		});

// 编辑订单详细
export const updateBusSubOrder = (params?: any) => 
	request({
			url: Api.UpdateBusSubOrder,
			method: 'post',
			data: params,
		});

// 分页查询订单详细
export const pageBusSubOrder = (params?: any) => 
	request({
			url: Api.PageBusSubOrder,
			method: 'post',
			data: params,
		});

export const getBusStroeDropdown = () =>
		request({
		url: Api.GetBusStroeDropdown,
		method: 'get'
		});
export const getBusGoodsDropdown = () =>
		request({
		url: Api.GetBusGoodsDropdown,
		method: 'get'
		});

